<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<TITLE>『后台管理平台』By ThinkPHP <?php echo (THINK_VERSION) ?></TITLE>
<link rel='stylesheet' type='text/css' href='/One/Tpl/default/Public/Css/style.css' />
<script type='text/javascript' src='/One/Tpl/default/Public/Js/Common.js'></script> 
<script type='text/javascript' src='/One/Tpl/default/Public/Js/Base.js'></script>  
<script type='text/javascript' src='/One/Tpl/default/Public/Js/prototype.js'></script>  
<script type='text/javascript' src='/One/Tpl/default/Public/Js/mootools.js'></script>  
<script type='text/javascript' src='/One/Tpl/default/Public/Js/Ajax/ThinkAjax.js'></script>  
<script type='text/javascript' src='/One/Tpl/default/Public/Js/Form/CheckForm.js'></script>  
<SCRIPT LANGUAGE="JavaScript">
<!--
//指定当前组模块URL地址 
var URL = '/News';
var APP	 =	 '';
var PUBLIC = '/Public';
//ThinkAjax.debug = true;
ThinkAjax.updateTip = '<IMG SRC="/One/Tpl/default/Public/images/loading2.gif" WIDTH="16" HEIGHT="16" BORDER="0" ALT="loading..." align="absmiddle"> 数据处理中...';
//-->
</SCRIPT>
</HEAD>

<body>
<!-- 菜单区域  -->

<!-- 主页面开始 -->
<div id="main" class="main" >

<!-- 主体内容  -->
<div class="content" >
<div class="title">帐号列表</div>
<!--  功能操作区域  -->
<div class="operate" >
<div class="impBtn hMargin fLeft shadow" ><input type="button" id="" name="add" value="新增" onclick="add()" class="add imgButton"></div>
<div class="impBtn hMargin fLeft shadow" ><input type="button" id="" name="edit" value="编辑" onclick="edit()" class="edit imgButton"></div>
<div class="impBtn hMargin fLeft shadow" ><input type="button" id="" name="delete" value="删除" onclick="del()" class="delete imgButton"></div>
<!-- 查询区域 -->
<div class="fRig">
<FORM METHOD=POST ACTION="/News">
<div class="fLeft"><span id="key"><INPUT TYPE="text" NAME="name" title="用户名查询" class="medium" ></span></div>
<div class="impBtn hMargin fLeft shadow" ><input type="submit" id="" name="search" value="查询" onclick="" class="search imgButton"></div>
<div class="impBtn hMargin fLeft shadow" ><input type="button" id="showText" name="adv" value="高级" onclick="showHideSearch()" class="adv imgButton"></div>
</div>
<!-- 高级查询区域 -->
<div  id="searchM" class=" none search cBoth" >
<TABLE cellpadding="1" cellspacing="2" width="100%">
<TR>
	<TD class="tRight">昵称：</TD>
	<TD><INPUT TYPE="text" NAME="nickname" class="medium " ></TD>
	<TD class="tRight">状态：</TD>
	<TD><SELECT class="small bLeft" NAME="status_sign">
	<option value="">选择</option>
	<option value="1">正常</option>
	<option value="0">禁止</option>
	</SELECT></TD>
</TR>
</TABLE>
</div>
<?php if(C("TOKEN_ON")):?><input type="hidden" name="<?php echo C("TOKEN_NAME");?>" value="<?php echo Session::get(C("TOKEN_NAME")); ?>"/><?php endif;?></form>
</div>
<!-- 功能操作区域结束 -->

<!-- 列表显示区域  -->
<div class="list" >
<div id="result" class="result none"></div>
<!-- Think 系统列表组件开始 -->
<table id="checkList" class="list" cellpadding=0 cellspacing=0 ><tr><td height="5" colspan="7" class="topTd" ></td></tr><tr class="row" ><th width="8"><input type="checkbox" id="check" onclick="CheckAll('checkList')"></th><th width="10%"><a href="javascript:sortBy('id','<?php echo ($sort) ?>','index')" title="按照编号<?php echo ($sortType) ?> ">编号<?php if(($order)  ==  "id"): ?><img src="/One/Tpl/default/Public/Images/<?php echo ($sortImg) ?>.gif" width="12" height="17" border="0" align="absmiddle"><?php endif; ?></a></th><th><a href="javascript:sortBy('categoryId','<?php echo ($sort) ?>','index')" title="按照新闻分类<?php echo ($sortType) ?> ">新闻分类<?php if(($order)  ==  "categoryId"): ?><img src="/One/Tpl/default/Public/Images/<?php echo ($sortImg) ?>.gif" width="12" height="17" border="0" align="absmiddle"><?php endif; ?></a></th><th><a href="javascript:sortBy('title','<?php echo ($sort) ?>','index')" title="按照标题<?php echo ($sortType) ?> ">标题<?php if(($order)  ==  "title"): ?><img src="/One/Tpl/default/Public/Images/<?php echo ($sortImg) ?>.gif" width="12" height="17" border="0" align="absmiddle"><?php endif; ?></a></th><th><a href="javascript:sortBy('create_time','<?php echo ($sort) ?>','index')" title="按照发布日期<?php echo ($sortType) ?> ">发布日期<?php if(($order)  ==  "create_time"): ?><img src="/One/Tpl/default/Public/Images/<?php echo ($sortImg) ?>.gif" width="12" height="17" border="0" align="absmiddle"><?php endif; ?></a></th><th><a href="javascript:sortBy('status','<?php echo ($sort) ?>','index')" title="按照状态<?php echo ($sortType) ?> ">状态<?php if(($order)  ==  "status"): ?><img src="/One/Tpl/default/Public/Images/<?php echo ($sortImg) ?>.gif" width="12" height="17" border="0" align="absmiddle"><?php endif; ?></a></th><th >操作</th></tr><?php if(is_array($list)): ?><?php $i = 0; ?><?php if( count($list)==0 ) : echo "" ; ?><?php else: ?><?php foreach($list as $key=>$user): ?><?php ++$i;?><?php $mod = (($i % 2 )==0)?><tr class="row" onmouseover="over()" onmouseout="out()" onclick="change()" ><td><input type="checkbox" name="key"	value="<?php echo (is_array($user)?$user["id"]:$user->id) ?>"></td><td><?php echo (is_array($user)?$user["id"]:$user->id) ?> </td><td><?php echo (is_array($user)?$user["categoryId"]:$user->categoryId) ?> </td><td><a href="javascript:edit('<?php echo (is_array($user)?$user["id"]:$user->id) ?>')"><?php echo (is_array($user)?$user["title"]:$user->title) ?> </a></td><td><?php echo (toDate(is_array($user)?$user["create_time"]:$user->create_time,'Y-m-d H#i#s')) ?> </td><td><?php echo (getStatus(is_array($user)?$user["status"]:$user->status)) ?> </td><td><a href="javascript:resume('<?php echo (is_array($user)?$user["id"]:$user->id) ?>')"><?php if(0== (is_array($user)?$user["status"]:$user->status)){ ?>恢复<?php } ?></a><a href="javascript:forbid(<?php echo (is_array($user)?$user["id"]:$user->id) ?>)"><?php if(1== (is_array($user)?$user["status"]:$user->status)){ ?>禁用<?php } ?></a> </td></tr><?php endforeach; ?><?php endif; ?><?php endif; ?><tr><td height="5" colspan="7" class="bottomTd"></td></tr></table>
<!-- Think 系统列表组件结束 -->
 
</div>
<!--  分页显示区域 -->
<div class="page"><?php echo ($page) ?></div>
<!-- 列表显示区域结束 -->
</div>
<!-- 主体内容结束 -->
</div>
<!-- 主页面结束 -->

</BODY>
</HTML>